#ifndef _SOCKET_   
#define _SOCKET_   
  
#ifdef __cplusplus   
extern "C"  
{   
#endif   

#include <winsock2.h>

#define MAX_SOCKET  2048

typedef enum {   
    E_SOC_MONKEY =0,
	E_SOC_APK	   
}E_SOC_TYPE;  

bool socket_init(void);
void socket_monkey_deinit(void);
bool socket_send_cmd_recv_rsp(char* sendbuf,int sendlen,char** rsp,int* rsplen,E_SOC_TYPE type); 
  
#ifdef __cplusplus   
};   
#endif   
#endif //end of _SOCKET_ 